#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    labFirst = new QLabel("我的第一个 QT 程序!", this);
    labFirst->setGeometry(50,50,330,100);
    labFirst->setStyleSheet("QLabel{color : red}");

    labFirst->setFont(QFont("宋体",13));
}

MainWindow::~MainWindow()
{
    delete ui;
}

